#include<stdio.h>
#include<stdlib.h>
int main()
{
	int i,j,x=9,y=9;
	char input;

	while(1)
	{
		system("cls");

	for(i=1;i<x;i++)
		printf("\n");
	for(j=1;j<y;j++)
		printf(" ");
	printf("  *\n");
	for(j=1;j<y;j++)
	    printf(" ");
	printf("*****\n");
	for(j=1;j<y;j++)
	    printf(" ");
	printf(" * *\n");
	
	scanf("%c",&input);
	if(input=='w')
		x=x-1;
	if(input=='s')
		x=x+1;
	if(input=='a')
		y=y-1;
	if(input=='d')
		y=y+1;
	}

	return 0;
}
	